/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.lnu.ums.entities;

import edu.lnu.ums.entities.core.UMSObject;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity
// publication is like print, but more abstract
public class Publication extends UMSObject {

    @ManyToOne(cascade = {CascadeType.PERSIST})
    @JoinColumn
    private Human author;

    @Column
    private String fullName;

    public Human getAuthor() {
        return author;
    }

    public void setAuthor(Human author) {
        this.author = author;
    }

    public String getFullName() {
        return fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }
}
